import {baseUrl} from "@/config/env";

/**
 * 全局配置文件
 */
export default {
  title: "SailmiUCS",
  logo: "A",
  key: 'saber',//配置主键,目前用于存储
  indexTitle: 'SailmiUCS-Admin',
  clientId: 'saber', // 客户端id
  clientSecret: 'saber_secret', // 客户端密钥
  tenantMode: true, // 是否开启租户模式
  captchaMode: true, // 是否开启验证码模式
  currentConsole: 1,//当前控制台
  tokenTime: 3000,//token过期时间
  Authorization: 'Sailmi-Auth',
  //http的status默认放行不才用统一处理的,
  statusWhiteList: [],
  //配置首页不可关闭
  setting: {
    sidebar: 'vertical',
    tag: true,
    debug: true,
    collapse: true,
    search: true,
    lock: true,
    screenshot: true,
    fullscren: true,
    theme: true,
    menu: true,
    isMultiAdmin: true,
  },
  fistPage: {
    name: "首页",
    path: "/desk/index"
  },
  //配置菜单的属性
  menu: {
    iconDefault: 'icon-caidan',
    label: 'name',
    path: 'path',
    icon: 'source',
    children: 'children',
    query: 'query',
    href: 'path',
    meta: 'meta'
  },
  //auth配置
  auth: {
    // 使用后端工程 @org.springblade.test.Sm2KeyGenerator 获取
    publicKey: '048eada0aa20c61f75e7b8b85c52f98e9bddfb9a614b4269f6e116dbd06b18aa8777c5797f13becb87750e799c2ccac7047c5cefdd223d4d7ca8b63a99d05093c4',
  },
  // 授权地址
  authUrl: baseUrl+'/auth-service/token',
}
